$(function(){
    $(".check-btn").on("click",function(){
        $(this).parent("li").find("div").each(function(){
            $(this).css("display","block");
        })
        $(this).parent("li").siblings("li").each(function(){
            $(this).find("div").each(function(){
                $(this).css("display","none");
            })
        })
    })
    $(".yesBtn").on("click",function(){
        $(this).parent("div").css("display","none");
        $(this).parent("div").prev().css("display","none");
    })

    $(".select_a").on("click",function(){
        var divId = $(this).attr("click_div");
        $(".select_a_div_triangle").css("display","none");
        $(".select_a_div").css("display","none");
        $("#"+divId).css("display","block");
        $("#"+divId).prev().css("display","block");
    })

    $(".reduce_give").click(function(){
        $(".reduce_give").removeClass("active_a");
        $(this).addClass("active_a");
        var value = $(this).attr("data_value");
        $("#zhongjian").html(value);
    });

    $('#supply_table').bootstrapTableEx({
        // url : '../../sys/user/list?_' + $.now(),
        height : $(window).height() - 54,
        queryParams : function(params) {
            return params;
        },
        columns: [{
            checkbox: true
        }, {
            field: 'id',
            title: '商品ID</br>ssads'
        }, {
            field: 'name',
            title: '商品名称'
        }, {
            field: 'price',
            title: '价格'
        }, {
            field: 'num',
            title: '库存'
        }, {
            field: 'number',
            title: '实际销量'
        },{
            field: 'type',
            title: '分类'
        },{
            field: 'pingpai',
            title: '品牌'
        }],
        data:[{
            "id":1,"name":"牛肉","price":1.00,"num":11,"number":12,"type":"肉类","pingpai":"杂牌"
        }]
    });

    $('#stock_table').bootstrapTableEx({
        // url : '../../sys/user/list?_' + $.now(),
        height : $(window).height() - 54,
        queryParams : function(params) {
            return params;
        },
        columns: [{
            checkbox: true
        }, {
            field: 'id',
            title: '商品ID</br>ssads'
        }, {
            field: 'name',
            title: '商品名称'
        }, {
            field: 'price',
            title: '价格'
        }, {
            field: 'num',
            title: '库存'
        }, {
            field: 'number',
            title: '实际销量'
        },{
            field: 'type',
            title: '分类'
        },{
            field: 'pingpai',
            title: '品牌'
        }],
        data:[{
            "id":1,"name":"牛肉","price":1.00,"num":11,"number":12,"type":"肉类","pingpai":"杂牌"
        }]
    });
    $('#discount_table').bootstrapTableEx({
        // url : '../../sys/user/list?_' + $.now(),
        height : $(window).height() - 54,
        queryParams : function(params) {
            return params;
        },
        columns: [{
            checkbox: true
        }, {
            field: 'id',
            title: '商品ID</br>ssads'
        }, {
            field: 'name',
            title: '商品名称'
        }, {
            field: 'price',
            title: '价格'
        }, {
            field: 'num',
            title: '库存'
        }, {
            field: 'number',
            title: '实际销量'
        },{
            field: 'type',
            title: '分类'
        },{
            field: 'pingpai',
            title: '品牌'
        }],
        data:[{
            "id":1,"name":"牛肉","price":1.00,"num":11,"number":12,"type":"肉类","pingpai":"杂牌"
        }]
    });
})

var vm = new Vue({
    el:"#myTabContent",
    data:{
        categoryData:[
            {"id":1,"name":"类别选择","name_e":"leibiexuanze"},{"id":2,"name":"类别选择","name_e":"leibiexuanze"},{"id":3,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":4,"name":"类别选择","name_e":"leibiexuanze"},{"id":5,"name":"类别选择","name_e":"leibiexuanze"},{"id":6,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":7,"name":"类别选择","name_e":"leibiexuanze"},{"id":8,"name":"类别选择","name_e":"leibiexuanze"},{"id":9,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":10,"name":"类别选择","name_e":"leibiexuanze"},{"id":11,"name":"类别选择","name_e":"leibiexuanze"},{"id":12,"name":"类别选择","name_e":"leibiexuanze"},
        ],
        typeData:[
            {"id":1,"name":"种类选择","name_e":"leibiexuanze"},{"id":2,"name":"种类选择","name_e":"leibiexuanze"},{"id":3,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":4,"name":"种类选择","name_e":"leibiexuanze"},{"id":5,"name":"种类选择","name_e":"leibiexuanze"},{"id":6,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":7,"name":"种类选择","name_e":"leibiexuanze"},{"id":8,"name":"种类选择","name_e":"leibiexuanze"},{"id":9,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":10,"name":"种类选择","name_e":"leibiexuanze"},{"id":11,"name":"种类选择","name_e":"leibiexuanze"},{"id":12,"name":"种类选择","name_e":"leibiexuanze"},
        ],
        brandData:[
            {"id":1,"name":"品牌选择","name_e":"leibiexuanze"},{"id":2,"name":"品牌选择","name_e":"leibiexuanze"},{"id":3,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":4,"name":"品牌选择","name_e":"leibiexuanze"},{"id":5,"name":"品牌选择","name_e":"leibiexuanze"},{"id":6,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":7,"name":"品牌选择","name_e":"leibiexuanze"},{"id":8,"name":"品牌选择","name_e":"leibiexuanze"},{"id":9,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":10,"name":"品牌选择","name_e":"leibiexuanze"},{"id":11,"name":"品牌选择","name_e":"leibiexuanze"},{"id":12,"name":"品牌选择","name_e":"leibiexuanze"},
        ],
        saveCategoryData:[
            {"id":1,"name":"类别选择","name_e":"leibiexuanze"},{"id":2,"name":"类别选择","name_e":"leibiexuanze"},{"id":3,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":4,"name":"类别选择","name_e":"leibiexuanze"},{"id":5,"name":"类别选择","name_e":"leibiexuanze"},{"id":6,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":7,"name":"类别选择","name_e":"leibiexuanze"},{"id":8,"name":"类别选择","name_e":"leibiexuanze"},{"id":9,"name":"类别选择","name_e":"leibiexuanze"},
            {"id":10,"name":"类别选择","name_e":"leibiexuanze"},{"id":11,"name":"类别选择","name_e":"leibiexuanze"},{"id":12,"name":"类别选择","name_e":"leibiexuanze"},
        ],
        saveTypeDataOne:[
            {"id":1,"name":"种类选择","name_e":"leibiexuanze"},{"id":2,"name":"种类选择","name_e":"leibiexuanze"},{"id":3,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":4,"name":"种类选择","name_e":"leibiexuanze"},{"id":5,"name":"种类选择","name_e":"leibiexuanze"},{"id":6,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":7,"name":"种类选择","name_e":"leibiexuanze"},{"id":8,"name":"种类选择","name_e":"leibiexuanze"},{"id":9,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":10,"name":"种类选择","name_e":"leibiexuanze"},{"id":11,"name":"种类选择","name_e":"leibiexuanze"},{"id":12,"name":"种类选择","name_e":"leibiexuanze"},
        ],
        saveTypeData:[
            {"id":1,"name":"种类选择","name_e":"leibiexuanze"},{"id":2,"name":"种类选择","name_e":"leibiexuanze"},{"id":3,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":4,"name":"种类选择","name_e":"leibiexuanze"},{"id":5,"name":"种类选择","name_e":"leibiexuanze"},{"id":6,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":7,"name":"种类选择","name_e":"leibiexuanze"},{"id":8,"name":"种类选择","name_e":"leibiexuanze"},{"id":9,"name":"种类选择","name_e":"leibiexuanze"},
            {"id":10,"name":"种类选择","name_e":"leibiexuanze"},{"id":11,"name":"种类选择","name_e":"leibiexuanze"},{"id":12,"name":"种类选择","name_e":"leibiexuanze"},
        ],
        saveBrandData:[
            {"id":1,"name":"品牌选择","name_e":"leibiexuanze"},{"id":2,"name":"品牌选择","name_e":"leibiexuanze"},{"id":3,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":4,"name":"品牌选择","name_e":"leibiexuanze"},{"id":5,"name":"品牌选择","name_e":"leibiexuanze"},{"id":6,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":7,"name":"品牌选择","name_e":"leibiexuanze"},{"id":8,"name":"品牌选择","name_e":"leibiexuanze"},{"id":9,"name":"品牌选择","name_e":"leibiexuanze"},
            {"id":10,"name":"品牌选择","name_e":"leibiexuanze"},{"id":11,"name":"品牌选择","name_e":"leibiexuanze"},{"id":12,"name":"品牌选择","name_e":"leibiexuanze"},
        ],
    },
    methods:{

    }
});
